/*
* Copyright (c) 2024 -present FengJinjian ( 751965763@qq.com )
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package edu.vital.energy.longevity.domain.dto.order;

import lombok.Data;
import java.io.Serializable;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Max;
import lombok.Getter;
import lombok.Setter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * 查询请求
 *
 * @author Feng JinJian
 * @since 2025-03-19
 */

public record OrderQueryDTO (
    /**
     * 当前页码
     */
    @Min(value = 1, message = "页码不能小于1")
    Integer current,

    /**
     * 每页显示记录数
     */
    @Min(value = 1, message = "每页记录数不能小于1")
    @Max(value = 100, message = "每页记录数不能超过100")
    Integer pageSize,

    /**
     * 订单编号
     */
    String orderNumber,
    /**
     * 用户ID
     */
    Long userId
) {}